using System;
using SubSonic; 

namespace ExtraClub.Domain.Entities{

    public partial class VwClientProfile
    {
        public static VwClientProfileCollection LoadByQuery(Query q) {
            VwClientProfileCollection list = new VwClientProfileCollection();
            list.LoadAndCloseReader(VwClientProfile.FetchByQuery(q));
            return list;
        }

        public new static VwClientProfile FetchByID(int id) {
            VwClientProfile ret = null;
            VwClientProfileCollection list = new VwClientProfileCollection();
            list.LoadAndCloseReader(VwClientProfile.FetchByParameter(VwClientProfile.Columns.Id, id));
            if (list.Count > 0){
                ret = list[0];
            }
            return ret;
        }
    }
}
